package com.hotel.dao;

import java.util.List;

import com.hotel.entity.Dept;

public interface DeptMapper {
    int deleteByPrimaryKey(Integer deptId);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Integer deptId);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);
    
    /**
     * 查询全部部门
     * @return
     */
    List<Dept> findAllDept();
    
	/**
     * 按职位ID查询部门
     * @return
     */
    Dept findDeptByPositionId(Integer positionId);
}